package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysProjectMemberMapper;
import com.ruoyi.system.domain.SysProjectMember;
import com.ruoyi.system.service.ISysProjectMemberService;

/**
 * 项目成员映射Service业务层处理
 * 
 * @author riddou
 * @date 2022-04-11
 */
@Service
public class SysProjectMemberServiceImpl implements ISysProjectMemberService 
{
    @Autowired
    private SysProjectMemberMapper sysProjectMemberMapper;

    /**
     * 查询项目成员映射
     * 
     * @param projectId 项目成员映射主键
     * @return 项目成员映射
     */
    @Override
    public SysProjectMember selectSysProjectMemberByProjectId(Long projectId)
    {
        return sysProjectMemberMapper.selectSysProjectMemberByProjectId(projectId);
    }

    /**
     * 查询项目成员映射列表
     * 
     * @param sysProjectMember 项目成员映射
     * @return 项目成员映射
     */
    @Override
    public List<SysProjectMember> selectSysProjectMemberList(SysProjectMember sysProjectMember)
    {
        return sysProjectMemberMapper.selectSysProjectMemberList(sysProjectMember);
    }

    /**
     * 新增项目成员映射
     * 
     * @param sysProjectMember 项目成员映射
     * @return 结果
     */
    @Override
    public int insertSysProjectMember(SysProjectMember sysProjectMember)
    {
        return sysProjectMemberMapper.insertSysProjectMember(sysProjectMember);
    }

    /**
     * 修改项目成员映射
     * 
     * @param sysProjectMember 项目成员映射
     * @return 结果
     */
    @Override
    public int updateSysProjectMember(SysProjectMember sysProjectMember)
    {
        return sysProjectMemberMapper.updateSysProjectMember(sysProjectMember);
    }

    /**
     * 批量删除项目成员映射
     * 
     * @param projectIds 需要删除的项目成员映射主键
     * @return 结果
     */
    @Override
    public int deleteSysProjectMemberByProjectIds(Long[] projectIds)
    {
        return sysProjectMemberMapper.deleteSysProjectMemberByProjectIds(projectIds);
    }

    /**
     * 删除项目成员映射信息
     * 
     * @param projectId 项目成员映射主键
     * @return 结果
     */
    @Override
    public int deleteSysProjectMemberByProjectId(Long projectId)
    {
        return sysProjectMemberMapper.deleteSysProjectMemberByProjectId(projectId);
    }
}
